class VoiceNotice {
  int id;
  int roomId;
  String content;
  String picture;
  String grade;
  int sort;
  String createdAt;

  VoiceNotice(
      {this.id,
        this.roomId,
        this.content,
        this.picture,
        this.grade,
        this.sort,
        this.createdAt});

  VoiceNotice.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    roomId = json['room_id'];
    content = json['content'];
    picture = json['picture'];
    grade = json['grade'];
    sort = json['sort'];
    createdAt = json['created_at'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['room_id'] = this.roomId;
    data['content'] = this.content;
    data['picture'] = this.picture;
    data['grade'] = this.grade;
    data['sort'] = this.sort;
    data['created_at'] = this.createdAt;
    return data;
  }
}

